﻿using RuoVea.ExEnum;
using RuoVea.ExSugar.Entity;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace RuoVea.H5DS.Models;

/// <summary>
/// H5Template
/// </summary>
[SugarTable(nameof(H5PageData), "H5PageData")]
public class H5PageData : EntityBase
{
    /// <summary>
    /// TempId
    /// </summary>
    [Required]
    [SugarColumn(ColumnDescription = "TempId")]
    public long TempId { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [Required, MaxLength(50)]
    [SugarColumn(ColumnDescription = "名称")]
    public string Name { get; set; }

    /// <summary>
    /// 值1
    /// </summary>
    [Required, MaxLength(300)]
    [SugarColumn(ColumnDescription = "值1")]
    public string Value1 { get; set; }

    /// <summary>
    /// 值2
    /// </summary>
    [Required]
    [SugarColumn(ColumnDescription = "值2")]
    public string Value2 { get; set; }

    /// <summary>
    /// 值3
    /// </summary>
    [Required]
    [SugarColumn(ColumnDescription = "值3")]
    public string Value3 { get; set; }

    /// <summary>
    /// 值4
    /// </summary>
    [Required]
    [SugarColumn(ColumnDescription = "值4")]
    public string Value4 { get; set; }

    /// <summary>
    /// 值5
    /// </summary>
    [Required]
    [SugarColumn(ColumnDescription = "值5")]
    public string Value5 { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [SugarColumn(ColumnDescription = "排序", IsNullable = true, DefaultValue = "10")]
    public int Sort { get; set; }

    /// <summary>
    /// 状态-正常_0、停用_1 
    /// </summary>
    [SugarColumn(ColumnDescription = "是否禁用", IsNullable = true)]
    public YesOrNot? IsDisable { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(100)]
    [SugarColumn(ColumnDescription = "备注", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string Remark { get; set; }
}
